import request from "@/utils/request";
/**
* @exports 项目删除
* @param params 
* @returns Promise
*/
export const itemDelete = (params: RestIdParam) => {
    return request.post<RestResult<string>>("/mgt/item/delete", params);
}

/**
* @exports 项目详情-根据项目ID查询
* @param params 
* @returns Promise
*/
export const detail = (params: RestIdParam) => {
    return request.post<RestResult<ItemVO>>("/mgt/item/detail", params);
}

/**
* @exports 项目列表
* @param params 
* @returns Promise
*/
export const queryPageList = (params: ItemSearchParam) => {
    return request.post<RestResult<PageVO<ItemLVO>>>("/mgt/item/queryPageList", params);
}

/**
* @exports 项目新增
* @param params 
* @returns Promise
*/
export const save = (params: ItemSaveParam) => {
    return request.post<RestResult<IdVO>>("/mgt/item/save", params);
}

/**
* @exports 项目编辑
* @param params 
* @returns Promise
*/
export const update = (params: ItemSaveParam) => {
    return request.post<RestResult<string>>("/mgt/item/update", params);
}

/**
* @exports 项目上下架
* @param params 
* @returns Promise
*/
export const updateStatus = (params: UpdateStatusParam) => {
    return request.post<RestResult<string>>("/mgt/item/updateStatus", params);
}
